package com.yixin.hospital.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum ResponseCodeEnum {
    SUCCESS(0, "操作成功"),
    ILLEGAL_OPERATION(600000, "非法操作"),
    INTERNAL_SERVER_ERROR(600001, "服务错误，请重试"),
    USER_NOT_EXIST(600002, "用户不存在"),
    PASSWORD_INCORRECT(600003, "密码不正确"),
    PARAM_MUST_NOT_NULL(600004, "参数[{0}]不能为空"),
    USER_EXIT(600005, "用户已存在"),
    ILLEGAL_TOKEN(600006, "非法token"),
    ILLEGAL_IP(600007, "ip非法"),
    TOKEN_EXP(600008, "token过期"),
    CAN_NOT_UPDATE(600009, "非草稿状态不允许编辑"),
    NOT_FOUND_TEMPLATE(600009, "科室模板为空，请先添加模板"),
    WAIT_AUDIT(600010, "请等待审批"),
    DEPT_MANAGER_EXIT(600011, "部门已存在管理岗"),
    ILLEGAL_AUTH(600012, "您不具有审批权限"),
    PATIENT_INTRODUCER(600013, "介绍人为空"),
    DEPT_MANAGER_NOT_EXIT(600014, "部门未设置管理岗"),
    PARENT_DEPT_NOT_EXIT(600015, "已无上级部门"),
    INVALID_CHECK_NUM(600016, "提交时必须填写盘点数量"),
    DEPT_DEPOSITORY_EXIT(600017, "部门已存在库房"),
    DEPOSITORY_NOT_FOUND(600017, "登录部门无仓库"),
    JOB_OFFICE_VISIT_TEMPLATE_EXIT(600018, "科室已设置模板，请修改"),
    JOB_OFFICE_VISIT_TEMPLATE_NOT_FOUND(600019, "科室无诊断模板"),
    AUTH_EXIST(600020, "权限已存在"),
    AUTH_NOT_FOUND(600020, "您的权限不足，或登录职务权限不足"),
    INVALID_CHECK(600021, "盘点未提交"),
    INVALID_WRITE_OFF(600022, "库存数量与盘点时数量不一致"),
    JOB_OFFICE_EXIST(600023, "执业科室已存在"),
    AMOUNT_ERROR(600024, "支付金额有变动"),
    EXIST_PAID(600025, "已支付"),
    EXIST_LIMIT_CARD(600026, "已购买期限卡，无法再次购买"),
    PAID_AMOUNT_ERROR(600027, "支付金额有误"),
    TAKE_DRUG_ERROR(600028, "药品未支付，无法出库"),
    INVENTORY_INSUFFICIENT(600029, "%s 库存不足"),
    TACK_DRUG_EXIST(600030, "无法重复取药"),
    INSPECTION_EXIST(600031, "无法重复检查"),
    INSPECTION_ERROR(600032, "检查未支付，无法提交"),
    INSPECTION_EMPTY_ERROR(600033, "未选择检查，无法提交"),

    ;

    private final int code;
    private final String msg;
}

